From: Stefan Monnier Date: Thu, 24 Dec 2009 04:35:17 +0000 (+0000) Subject: (Fsave_excursion): Mention save-current-buffer in the docstring. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8871 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6446d53480e644a5604b98ed2bbd10c00a9e67ab;p=emacs.git (Fsave_excursion): Mention save-current-buffer in the docstring. --- diff --git a/src/editfns.c b/src/editfns.c index c2c5d265cb5..927bf50194a 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -997,6 +997,9 @@ functions that change the buffer will still cause deactivation of the mark at the end of the command. To prevent that, bind `deactivate-mark' with `let'. +If you only want to save the current buffer but not point nor mark, +then just use `save-current-buffer', or even `with-current-buffer'. + usage: (save-excursion &rest BODY) */) (args) Lisp_Object args;